﻿using FastMvc.Crud;
using JQ.SAAS.DTO.OrgUser;
using JQ.SAAS.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace JQ.SAAS.IService
{
    public interface IOrgUserService : ICrudService<sys_user, OrgUserDto, string, OrgUserListRequestDto, OrgUserCreateDto, OrgUserUpdateDto>
    {
        Task<OrgUserResetPwdDto> ResetPassWord(OrgUserResetPwdDto resetDto);

        Task SetLockState(OrgUserLockDto lockDto);

        Task<List<OrgUserRoleSetDto>> GetRoles(string sId);

        Task SetRoles(string sId, List<OrgUserRoleSetDto> roles);
    }
}
